<%@language=vbscript%>
<!--#include file=getFormName.inc-->
<%
	on error Resume next
	set Conn=server.CreateObject("ADODB.Connection")
	Conn.Open Application("StrConn")
	if Err.number then
		Set Conn=nothing
		Response.Redirect(UrlRoot & "Error.asp?ErrorCode=2")
	end if
%>
<script language=VBScript  runat="server">
Function CheckMenu(Menu)
	CheckMenu=FALSE
	if Menu="DANH_MUC" then
		dim i,a(11)
		a(0)="F10"	'"CAN BO"
		a(1)="F11"	'"CHUC DANH"
		a(2)="F12"	'"NHOM LAM VIEC"
		a(3)="F13"	'"NHOM QUYEN"
		a(4)="F14"	'"TO CHUC DOI TAC"
		a(5)="F15"	'"DOI TAC CA NHAN"
		a(6)="F16"	'"PHAN LOAI CONG VAN DEN"
		a(7)="F17"	'"PHAN LOAI CONG VAN DI"
		a(8)="F18"	'"PHAN LOAI QUYET DINH"
		a(9)="F31"	'"DIA CHI LUU TRU"
		a(10)="F36"	'"LUONG MAU"
		a(11)="F38"	'"DON VI"		
		for i=0 to 11
			if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),a(i),1)="1" or Session("IsAdmin") then
				CheckMenu=TRUE
				exit for
			end if 
		next
	end if
End Function
</script>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<META NAME="robots" CONTENT="noindex" />
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
<SCRIPT>
   //<!--
var sUA = window.navigator.userAgent;
var bIsIE4 = -1 != sUA.indexOf("MSIE 4"); 
var bIsIE5 = -1 != sUA.indexOf("MSIE 5");
var bIsIE6 = -1 != sUA.indexOf("MSIE 6");
var bIsIE7 = -1 != sUA.indexOf("MSIE 7");
var bIsMac = sUA.indexOf("Mac") > -1;
var bDoesAll = (bIsIE4 || bIsIE5 ||bIsIE6||bIsIE7) && !bIsMac;

var sSheet = "css/";
if (bDoesAll || bIsMac) 
{
if (bIsMac) sSheet += "ie4Mac-toc.css";
else sSheet += "ie4-toc.css";
}
else 
{
sSheet += "all-toc.css";
}
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="' + sSheet + '">');

   function newItem(sDatePosted) {
      var dPosted = new Date(sDatePosted)
      if (Date.parse(Date()) < Date.parse(dPosted) + 7){
         document.write("<IMG SRC='../../sitebuilder/graphics/new1.gif' ALIGN='middle' WIDTH='19' HEIGHT='9' BORDER='0' ALT='New'>");
      }
   }

   function updatedItem(sDateUpdated) {
      var dUpdated = new Date(sDateUpdated)
      if (Date.parse(Date()) < Date.parse(dUpdated) + 7){
         document.write("<IMG SRC='../../sitebuilder/graphics/rev1.gif' WIDTH='19' HEIGHT='9' BORDER='0' ALT='Updated'>");
      }
   }

   // do nothing but enable items to receive focus
   function NoOp()
   {
		return
   }   
	
   //-->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">
<!--//
   var origFrameset = parent.vbalFrameset.cols;
   function navToggle(navType){
	if(navType == "close"){
		//document.all('Navigation').style.display = "none";
		//document.all('NavClosed').style.display = "";
		parent.vbalFrameset.cols = "0,6,*";
	}	
	if(navType == "open"){
		//document.all('Navigation').style.display = "";
		//document.all('NavClosed').style.display = "none";
		parent.vbalFrameset.cols = origFrameset;
	}	
    }
//-->
</SCRIPT>

</HEAD>
<BODY   background="images/left.jpg" RIGHTMARGIN="0" TOPMARGIN="5" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" LINK="#000066" VLINK="#666666" TEXT="#000000">

<FONT SIZE="2" FACE="Arial">
<UL STYLE="BEHAVIOR: url('htc/tocstate.htc')">
<LI CLASS='clsShowHide'><A class=clsTOCHeading>Hệ thống</A>
	<UL CLASS="clsItemsHide">
	<%
	if Session("Permision")<>"" or Session("IsAdmin") then
		%><LI><A onmouseout="window.status='';return true" onmouseover="window.status='Đăng nhập';return true" class=clsTOCItem href='leftmain.asp?bComm=restart' target='main'>Đăng nhập</A><%
	else
		%><LI><A onmouseout="window.status='';return true" onmouseover="window.status='Đăng nhập';return true" 
		class=clsTOCItem href='login/login.asp?bComm=restart' target='right'>Đăng nhập</A><%
	end if
	%>

	<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F2",1)="1" or Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Đặt cấu hình';return true" class=clsTOCItem href='Hethong/config.asp' Target='right'>Đặt cấu hình</A>
	<%else%>
		<%if Session("Permision")="" and not Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Đặt cấu hình';return true" class=clsTOCItem href='leftmain.asp?bComm=restart' Target='main'>Đặt cấu hình</A>
		<%end if%>
	<%end if%>

	<%if Session("Permision")="" and not Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Sao l&#432;u d&#7919; li&#7879;u';return true" class=clsTOCItem href='login/login.asp?bComm=restart' Target='right'>Sao lưu dữ liệu</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Kh&#244;i ph&#7909;c d&#7919; li&#7879;u';return true" class=clsTOCItem href='login/login.asp?bComm=restart' Target='right'>Kh&#244;i ph&#7909;c d&#7919; li&#7879;u</A>
	<%else%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F3",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Sao l&#432;u d&#7919; li&#7879;u';return true" class=clsTOCItem href='hethong/backup.asp' Target=right>Sao lưu dữ liệu</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F4",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Kh&#244;i ph&#7909;c d&#7919; li&#7879;u';return true" class=clsTOCItem href='hethong/restore.asp' Target=right>Kh&#244;i ph&#7909;c d&#7919; li&#7879;u</A>
		<%end if%>
	<%end if%>
	<%if Session("Permision")="" and not Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Thay &#273;&#7893;i m&#7853;t kh&#7849;u';return true" class=clsTOCItem href='login/login.asp?bComm=restart' Target='right'>Thay &#273;&#7893;i m&#7853;t kh&#7849;u</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Nh&#7853;t k&#253; ng&#432;&#7901;i d&#249;ng';return true" class=clsTOCItem href='login/login.asp?bComm=restart' Target='right'>Nhật ký người dùng</A>
	<%else%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F5",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Thay &#273;&#7893;i m&#7853;t kh&#7849;u';return true" class=clsTOCItem href='login/ChangePw.asp' Target='right'>Thay &#273;&#7893;i m&#7853;t kh&#7849;u</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F6",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Nh&#7853;t k&#253; ng&#432;&#7901;i d&#249;ng';return true" class=clsTOCItem href='hethong/frmdslog.asp' Target='new'>Nhật ký người dùng</A>
		<%end if%>
	<%end if%>
	<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F7",1)="1" or Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='D&#7885;n d&#7865;p d&#7919; li&#7879;u';return true" class=clsTOCItem href='hethong/frmdonrac.asp' Target='right'>D&#7885;n d&#7865;p d&#7919; li&#7879;u</A>
	<%else%>
		<%if Session("Permision")="" and not Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='D&#7885;n d&#7865;p d&#7919; li&#7879;u';return true" class=clsTOCItem href='leftmain.asp?bComm=restart' Target='main'>D&#7885;n d&#7865;p d&#7919; li&#7879;u</A>
		<%end if%>
	<%end if%>	
	
	<%if Session("Permision")<>"" or Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Khóa chương trình';return true" class=clsTOCItem href='leftmain.asp?bComm=restart' target=main>Khóa chương trình</A>
	<%end if%>

<!-- 	<%if Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" class=clsTOCItem href='Capnhat/frmquyensudung.asp' Target='right'>C?p nh?t danh sách quy?n</A>
	<%end if%> -->
</LI>
</UL>
<!-- Thu dien tu -->
<LI CLASS="clsShowHide"><A class=clsTOCHeading>Thư điện tử</A>
	<UL CLASS="clsItemsHide">
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='L?y thu';return true" class=clsTOCItem href='GetMail.asp?view=List' Target='right'>Lấy thư</A>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='So?n thu';return true" class=clsTOCItem href='GetMail.asp?view=Compose' Target='right'>Soạn thư</A>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='S? d?a ch?';return true" class=clsTOCItem href='GetMail.asp?view=Options-AddrBook' Target='right'>Sổ địa chỉ</A>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Tùy ch?n';return true" class=clsTOCItem href='GetMail.asp?view=Options' Target='right'>Tùy chọn</A>
</UL>
<!--  -->

<% if CheckMenu("DANH_MUC") then %>
<LI CLASS="clsShowHide"><A class=clsTOCHeading>Danh m&#7909;c</A>
	<UL CLASS="clsItemsHide">
	<%if Session("Permision")="" and not Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục đơn vị';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Đơn vị</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c c&#225;n b&#7897;';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>C&#225;n b&#7897;</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c ch&#7913;c danh';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Ch&#7913;c danh</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c nh&#243;m l&#224;m vi&#7879;c';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Nh&#243;m l&#224;m vi&#7879;c</A>	    
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục tổ chức đối tác';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>T&#7893; ch&#7913;c &#273;&#7889;i t&#225;c</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c &#273;&#7889;i t&#225;c c&#225; nh&#226;n';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Đối tác cá nhân</A>		
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục phân loại công văn đến';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Phân loại công văn đến</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục phân loại công văn đi';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Phân loại công văn đi</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục phân loại quyết định';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Phân loại quyết định</A>
		<!-- Luongmau -->
		<!-- <LI><A onmouseout="window.status='';return true" onmouseover="window.status='Luồng xử lý mẫu';return true" CLASS='clsTOCItem' TARGET='right' HREF='login/login.asp?bComm=restart'>Luồng xử lý mẫu</A> -->
		
	<%else%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F38",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục đơn vị';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmDonvi.asp'>Đơn vị</A>
		<%end if%>
			
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F10",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c c&#225;n b&#7897;';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmcanbo.asp'>C&#225;n b&#7897;</A>	
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F11",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c ch&#7913;c danh';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmchucdanh.asp'>Ch&#7913;c danh</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F12",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c nh&#243;m l&#224;m vi&#7879;c';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmnhom.asp'>Nh&#243;m l&#224;m vi&#7879;c</A>
		<%end if%>			
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F13",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục nhóm quyền';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmnhomquyen.asp'>Nhóm quyền</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F14",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục tổ chức đối tác';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmdoitac.asp'>T&#7893; ch&#7913;c &#273;&#7889;i t&#225;c</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F15",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh m&#7909;c &#273;&#7889;i t&#225;c c&#225; nh&#226;n';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmcanbodoitac.asp'>Đối tác cá nhân</A>		
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F16",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục phân loại công văn đến';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmphanloai.asp'>Phân loại công văn đến</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F17",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh much phân loại công văn đi';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmphanloaidi.asp'>Phân loại công văn đi</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F18",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục phân loại quyết định';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmphanloaiQD.asp'>Phân loại quyết định</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F36",1)="1" or Session("IsAdmin") then%>
		<!-- Bg ThphucLuongMau -->
		<!-- <LI><A onmouseout="window.status='';return true" onmouseover="window.status='Luồng xử lý mẫu';return true" CLASS='clsTOCItem' TARGET='right' HREF='TvWorkFlow/frmTvWorkFlow.asp'>Luồng xử lý mẫu</A> -->
		<!-- Ed ThphucLuongMau -->
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F42",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục phân loại tính chất công văn đến';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmLoaiVBDen.asp'>Phân loại tính chất công văn đến</A>
		<%end if%>
<!-- DIA CHI LUU TRU-->
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F31",1)="1" or Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh mục địa chỉ lưu trữ văn thư';return true" CLASS='clsTOCItem' TARGET='right' HREF='capnhat/frmdiachiluutru.asp'>Địa chỉ lưu trữ văn thư</A>
		<%end if%>
	<%end if%>
	</LI>
</UL>	
<%end if%>
<LI CLASS="clsShowHide"><A class=clsTOCHeading>Làm việc với văn bản</A>
	<UL CLASS="clsItemsHide">
	<%if Session("Permision")="" and not Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với công văn đến';return true" class=clsTOCItem TARGET='right' HREF='login/login.asp?bComm=restart'>Công văn đến</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với công văn đi';return true" class=clsTOCItem href='login/login.asp?bComm=restart' target='right'>Công v&#259;n &#273;i</A>		
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với văn bản cá nhân';return true" class=clsTOCItem href='login/login.asp?bComm=restart' target='right'>V&#259;n b&#7843;n cá nhân</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với quyết định';return true" class=clsTOCItem href='login/login.asp?bComm=restart' target='right'>Quyết định</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='L&#224;m vi&#7879;c v&#7899;i v&#259;n b&#7843;n n&#7897;i b&#7897;';return true" class=clsTOCItem href='login/login.asp?bComm=restart' target='right'>Văn bản nội bộ</A>
	     <!--<LI><a onmouseout="window.status='';return true" onmouseover="window.status='Thi?t l?p in công van';return true" class="clsTOCItem" href="login/login.asp?bComm=restart" target="right">Thi?t l?p in công van</a>-->
		<!--<LI><a onmouseout="window.status='';return true" onmouseover="window.status='Tìm ki?m công van';return true" class="clsTOCItem" href="login/login.asp?bComm=restart" target="right">Tìm ki?m công van</a>-->
		
		<%
	else
		%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F19",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với công văn đến';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmdsvtdenTN.asp?page=1'>Công văn đến</A>
		<%end if%>

		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F20",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với công văn đi';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmdsvtdiTN.asp?page=1'>Công v&#259;n &#273;i</A>
		<%end if%>

		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F21",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với quyết định';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmdsvtquyetdinhTN.asp?page=1'>Quyết định</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F22",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với văn cá nhân';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmdsvtduthao.asp?page=1'>V&#259;n b&#7843;n cá nhân</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F23",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='L&#224;m vi&#7879;c v&#7899;i v&#259;n b&#7843;n n&#7897;i b&#7897;';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmdsvtNoibo.asp?page=1'>Văn bản nội bộ</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F45",1)="1" or Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Làm việc với tờ trình - giao việc';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmdsTotrinh.asp?page=1'>Tờ trình - giao việc</A>
		<%end if%>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Điểm văn bản';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmDiemVB.asp'>Điểm văn bản</A>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F44",1)="1" or Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='Theo dõi xử lý công văn đến';return true" onmouseover="window.status='';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmtdxlvb.asp'>Theo dõi xử lý công văn đến</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F46",1)="1" or Session("IsAdmin") then%>
		<LI><A onmouseout="window.status='Theo dõi xử lý công văn đến';return true" onmouseover="window.status='';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmtdxltotrinh.asp'>Theo dõi xử lý tờ trình - giao việc</A>
		<%end if%>
<!-- So luong van ban can hien thi 
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='';return true" class=clsTOCItem TARGET='right' HREF='xuly/frmSLVB.asp'>S? lu?ng van b?n c?n làm vi?c</A>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F19",3)="1" or Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F20",3)="1" or Session("IsAdmin") then%>
			<LI><a onmouseout="window.status='';return true" onmouseover="window.status='';return true" class="clsTOCItem" target="right" href="xuly/frmInForDate.asp">Thi?t l?p in công van</a>
		<% end if%>
-->
<!--				
		<%if (Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F19",2)="1" and Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F20",2)="1" and Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F21",2)="1") or Session("IsAdmin") then%>
			<LI><a onmouseout="window.status='';return true" onmouseover="window.status='';return true" class="clsTOCItem" target="right" href="xuly/frmTimkiemCV.asp">Tìm ki?m công van</a>
		<% end if%>		
-->		
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F29",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='';return true" class=clsTOCItem TARGET='right' HREF='xuly/openmail.asp'>Công văn đến từ Mail</A>
		<%end if%>
		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F30",1)="1" or Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='';return true" class=clsTOCItem TARGET='right' HREF='xuly/openfax.asp'>Công v&#259;n &#273;&#7871;n t&#7915; Fax</A>
		<%end if%>
		<%
	end if%>
	</LI>
</UL>
<%if Session("Permision")="" and not Session("IsAdmin") then%>
	<LI CLASS="clsShowHide"><A onmouseout="window.status='';return true" onmouseover="window.status='Theo d&#245;i h&#7891;i b&#225;o';return true" class=clsTOCHeading href='login/login.asp?bComm=restart' target='right'>Theo d&#245;i h&#7891;i b&#225;o</A>
	<UL CLASS="clsItemsHide">
	</LI>
	</UL>
<%else%>
	<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F24",1)="1" or Session("IsAdmin") then%>
		<LI CLASS="clsShowHide"><A onmouseout="window.status='';return true" onmouseover="window.status='Theo d&#245;i h&#7891;i b&#225;o';return true" class=clsTOCHeading href='xuly/frmvuviec.asp' target='right'>Theo d&#245;i h&#7891;i b&#225;o</A>
		<UL CLASS="clsItemsHide">
		</LI>
		</UL>		
	<%end if%>
<%end if%>
<LI CLASS="clsShowHide"><A  class=clsTOCHeading>Xử lý công việc</A>
	<UL CLASS="clsItemsHide">
		<%if Session("Permision")="" and not Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Theo dõi công việc cần xử lý';return true" class=clsTOCItem href='login/login.asp?bComm=restart' target='right'>Theo d&#245;i x&#7917; l&#253;</A>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Xử lý công việc';return true" class=clsTOCItem href='login/login.asp?bComm=restart' target='right'>Xử lý công việc</A>
			<%
		else
			%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Theo dõi xử lý công việc';return true" class=clsTOCItem href='workflow/frmDsFlow.asp' target='right'>Theo dõi xử lý</A>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Xử lý công việc';return true" class=clsTOCItem href='workflow/frmDsXuly.asp' target='right'>Xử lý công việc</A>
			<%
		End if%>
		
	</LI>
</UL>
<!-- QUAN LY BAN GOC-->
<%	
	sSQL="Select * from diachiluutru where nguoiphutrach like '"& Session("bMaCB") &"'"
	Set RecT=server.CreateObject("ADODB.Recordset")
	RecT.CursorType=3
	RecT.CacheSize=5
	RecT.Open sSQL,Conn
	if RecT.RecordCount then
		bQuyen=true
	else
		bQuyen=false
	end if
	REct.Close
	Set RecT=nothing
%>
<%if bQuyen then%>
<LI CLASS="clsShowHide"><A class=clsTOCHeading>Qu&#7843;n l&#253; b&#7843;n g&#7889;c</A>
	<UL CLASS="clsItemsHide">
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Cho m&#432;&#7907;n t&#224;i li&#7879;u';return true" class=clsTOCItem onclick="javascript:navToggle('close');"  href='muontra/Muontra.asp?CreateTableTemp=ok' target='right'>Cho m&#432;&#7907;n</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Thu h&#7891;i t&#224;i li&#7879;u';return true" class=clsTOCItem href='muontra/frmDsMuon.asp' target='right'>Thu h&#7891;i t&#224;i li&#7879;u</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='In Phiếu';return true" class=clsTOCItem href='muontra/DsInphieu.asp' target='right' >In phi&#7871;u</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh s&#225;ch m&#432;&#7907;n qu&#225; h&#7841;n';return true" class=clsTOCItem href='muontra/frmDsMuonquahan.asp' target='right'>Danh sách mượn quá hạn</A>
		<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Th&#7889;ng k&#234; ho&#7841;t &#273;&#7897;ng cho m&#432;&#7907;n';return true" class=clsTOCItem href='muontra/frmdsthongke.asp' target='right' >Th&#7889;ng k&#234; ho&#7841;t &#273;&#7897;ng m&#432;&#7907;n</A>
	</LI>
</UL>
<%end if%>
<LI CLASS="clsShowHide"><A  class=clsTOCHeading>Tiện ích văn phòng</A>
	<UL CLASS="clsItemsHide">
		<%if Session("Permision")="" and not Session("IsAdmin") then	%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Xem l&#7883;ch';return true" class=clsTOCItem href='login/login.asp?bComm=restart' Target='right'>Xem l&#7883;ch</A>
		<%else%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Xem l&#7883;ch';return true" class=clsTOCItem href='leftmain.asp' Target='main'>Xem l&#7883;ch</A>
		<%end if%>
		<%if Session("bLich")="TCUC" then%>
			<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F26",1)="1" or Session("IsAdmin") then%>		
				<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Đăng ký lịch';return true" class=clsTOCItem onclick="javascript:navToggle('close');" href='Lich/test2tc.asp?bScroll=true&bComm=log' Target='right'>Đăng ký lịch</A>
			<%end if%>
		<%else%>
			<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F25",1)="1" or Session("IsAdmin")  then%>			
				<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Đăng ký lịch';return true" class=clsTOCItem onclick="javascript:navToggle('close');" href='Lich/test2.asp?bScroll=true&bComm=log' Target='right'>Đăng ký lịch</A>
			<%end if%>
		<%end if%>
		<%if Session("Permision")="" and not Session("IsAdmin") then%>
				<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Đăng ký lịch';return true" class=clsTOCItem href='leftmain.asp?bComm=restart' Target='main'>Đăng ký lịch</A>
		<%end if%>
		<%if Session("bLich")="TCUC" then%>
			<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F26",2)="1" or Session("IsAdmin") then%>
				<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Lập lịch làm việc';return true" class=clsTOCItem onclick="javascript:navToggle('close');" href='Lich/frmframelichtc.asp?bComm=log' Target='right'>Lập lịch làm việc</A>
			<%end if%>
		<%else%>
			<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F25",2)="1" or Session("IsAdmin") then%>
				<LI><A onmouseout="window.status='';return true" onmouseover="window.status='L&#7853;p l&#7883;ch';return true" class=clsTOCItem onclick="javascript:navToggle('close');" href='Lich/frmframelich.asp?bComm=log' Target='right'>Lập lịch làm việc</A>
			<%end if%>
		<%end if%>
		<%if Session("Permision")="" and not Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Lập lịch';return true" class=clsTOCItem href='leftmain.asp?bComm=restart' Target='main'>Lập lịch làm việc</A>
		<%end if%>
		<%if Session("bLich")="TCUC" then%>
			<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F26",3)="1" or Session("IsAdmin") then%>
				<LI><A onmouseout="window.status='';return true" onmouseover="window.status='lập lịch trực';return true" class=clsTOCItem onclick="javascript:navToggle('close');" href='Lich/frmframelichtructc.asp?bComm=log' Target='right'>Lập lịch trực</A>
			<%end if%>
		<%else%>
			<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F25",3)="1" or Session("IsAdmin") then%>
				<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Lập lịch trực';return true" class=clsTOCItem onclick="javascript:navToggle('close');" href='Lich/frmframelichtruc.asp?bComm=log' Target='right'>Lập lịch trực</A>
			<%end if%>
		<%end if%>
		<%if Session("Permision")="" and not Session("IsAdmin") then%>
			<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Lập lịch trực';return true" class=clsTOCItem href='leftmain.asp?bComm=restart' Target='main'>Lập lịch trực</A>
		<%end if%>
	<%if Session("Permision")<>"" or Session("IsAdmin") then%>
	<LI >
 	<A onmouseout="window.status='';return true" onmouseover="window.status='Danh b&#7841; &#273;i&#7879;n tho&#7841;i';return true" class=clsTOCHeading href='capnhat/phone.asp' target=right>Danh bạ điện thoại</A>	
	<%else%>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Danh b&#7841; &#273;i&#7879;n tho&#7841;i';return true" class=clsTOCHeading href='login/login.asp?bComm=restart' target=right>Danh bạ điện thoại</A>
	<%end if%>

	</LI>
</UL>

<LI CLASS="clsShowHide"><A class=clsTOCHeading>Giao ban</A>
	<UL CLASS="clsItemsHide">
	<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F50",1)="1" or Session("IsAdmin") then%>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Chương trình giao ban';return true" href="giaoban/frmlichgbtuan.asp" target=right class=clsTOCHeading>Chương trình giao ban</A>
	<%end if%>
	<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F47",1)="1" or Session("IsAdmin") then%>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Cập nhật giao ban';return true" href="giaoban/frmctgbtuan.asp" target=right class=clsTOCHeading>Cập nhật giao ban</A>
	<%end if%>
	<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F48",1)="1" or Session("IsAdmin") then%>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Tổng hợp giao ban';return true" href="giaoban/frmthgbtuan.asp" target=right class=clsTOCHeading>Tổng hợp giao ban</A>	
	<%end if%>
	<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F49",1)="1" or Session("IsAdmin") then%>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Kết luận giao ban';return true" href="giaoban/frmkqgbtuan.asp" target=right class=clsTOCHeading>Kết luận giao ban</A>
	<%end if%>
	<LI><A onmouseout="window.status='';return true" onmouseover="window.status='Thông tin giao ban';return true" class=clsTOCHeading href="giaoban/frmttgbtuan.asp" target=right>Thông tin giao ban</A>
	</LI>
</UL>
<LI CLASS="clsShowHide"><A class=clsTOCHeading>Tr&#7907; gi&#250;p</A>
	<UL CLASS="clsItemsHide">
		<!-- <LI><A class=clsTOCItem href='gioithieu.htm' Target='right' onmouseout="window.status='';return true" onmouseover="window.status='Gi?i thi?u chuong trình';return true" >Gi?i thi?u chuong trình</A> -->
		<LI><A class=clsTOCItem href='Help/NetOfficeHelp.htm' Target='_blank' onmouseout="window.status='';return true" onmouseover="window.status='Hướng dẫn sử dụng';return true" >Hướng dẫn sử dụng</A>
		</LI>
	</UL>
</FONT>
<SCRIPT>
   //<!--
   if (bDoesAll) {
      document.write("<SCR" + "IPT LANGUAGE='javascript' SRC='js/toc.js'></SCR" + "IPT>");
   }
   //-->
</SCRIPT>
  </LI></UL>

<Center><IMG SRC=images/logo/logoselab.GIF></Center>
  </BODY>
</HTML>